//go:build wireinject

package main

import (
	"gin-demo/dao"
	"gin-demo/handler"
	"gin-demo/service"

	"github.com/google/wire"
)

func InitUserHandler() handler.UserHandler {
	wire.Build(
		wire.NewSet(dao.NewUserDao),
		wire.NewSet(service.NewUserService),
		handler.NewUserHandler,
	)
	return nil
}

func InitAuthHandler() handler.AuthHandler {
	wire.Build(
		wire.NewSet(dao.NewUserDao),
		wire.NewSet(service.NewUserService),
		handler.NewAuthHandler,
	)
	return nil
}
